/**
 * Copyright &copy; 2012-2014 <a href="http://www.iframework.cn">Mas</a> All rights reserved.
 */
package com.iframework.mas.modules.accident.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.iframework.mas.common.persistence.DataEntity;

/**
 * 事故列表Entity
 * @author 余艾龙
 * @version 2016-01-30
 */
public class Accidentpic extends DataEntity<Accidentpic> {
	
	private static final long serialVersionUID = 1L;
	private Accident accident;		// 事故主表Id 父类
	private String picpath;		// 图片URL
	private String pictype;		// 图片类型
	private String status;		// 是否显示
	private String remark;		// remark
	
	public Accidentpic() {
		super();
	}

	public Accidentpic(String id){
		super(id);
	}

	public Accidentpic(Accident accident){
		this.accident = accident;
	}

	@NotNull(message="事故主表Id不能为空")
	public Accident getAccident() {
		return accident;
	}

	public void setAccident(Accident accident) {
		this.accident = accident;
	}
	
	public String getPicpath() {
		return picpath;
	}

	public void setPicpath(String picpath) {
		this.picpath = picpath;
	}
	
	@Length(min=0, max=11, message="图片类型长度必须介于 0 和 11 之间")
	public String getPictype() {
		return pictype;
	}

	public void setPictype(String pictype) {
		this.pictype = pictype;
	}
	
	@Length(min=0, max=1, message="是否显示长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}